<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
    {include file="layout:_meta" /}
    <title>帮助</title>
</head>
<!-- 编辑器配置文件 -->
<script src="/ueditor/ueditor.config.js" type="text/javascript">
</script>
<!-- 编辑器源码文件 -->
<script src="/ueditor/ueditor.all.js" type="text/javascript">
</script>
<body>
<article class="cl pd-20">
    <form class="form form-horizontal" id="form-admin">

        <div class="row cl">
            <label class="form-label col-xs-1 col-sm-1">帮助</label>
            <div class="formControls col-xs-8 col-sm-9">
                <div class="layui-input-block">
                    <script id="timu" name="v" style="width:100%;height:300px;" type="text/plain">{$text|raw}
                    </script>
                    <script type="text/javascript">
                        var ue_timu = UE.getEditor("timu");
                        ue_timu.ready(function() {
                            ue_timu.setHeight(200);
                        });
                    </script>
                </div>
            </div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9   col-sm-offset-1 col-xs-offset-1  ">
            <input onclick="storeRegText()" type="button" value="提交" class="btn btn-primary radius">
        </div>
        </div>



    </form>
</article>

<!--_footer 作为公共模版分离出去-->
{include file="layout:_footer" /}
<!--/_footer 作为公共模版分离出去-->
<script>
    function storeRegText(){
        $.ajax({
            type:'post',
            url:'/admin/common/storeHelp',
            data:{
                text:ue_timu.getContent(),
            },
            success:function(res){
              window.location.reload();
            }
        })
    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
